package com.xiaofeng.auth.domain.convert;

import com.xiaofeng.auth.domain.entity.AuthPermissionBO;
import com.xiaofeng.auth.domain.entity.AuthRoleBO;
import com.xiaofeng.subject.infra.basic.entity.AuthPermission;
import com.xiaofeng.subject.infra.basic.entity.AuthRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author: chc
 * @Date: 2024/02/10/20:01
 * @Description: 权限BO转换器
 */
@Mapper
public interface AuthPermissionBOConverter {

    AuthPermissionBOConverter INSTANCE = Mappers.getMapper(AuthPermissionBOConverter.class);

    AuthPermission convertBOToEntity(AuthPermissionBO authPermissionBO);

}
